package com.lanyine.manifold.base.exception;

/**
 * Dao 异常
 * 
 * @author shadow
 * 
 */
public class BaseDaoException extends RuntimeException {
	private static final long serialVersionUID = 1L;
	private String code;

	public BaseDaoException(String code) {
		this.code = code;
	}

	public BaseDaoException(Throwable cause, String code) {
		super(cause);
		this.code = code;
	}

	public BaseDaoException(String message, String code) {
		super(message);
		this.code = code;
	}

	public BaseDaoException(String message, Throwable cause, String code) {
		super(message, cause);
		this.code = code;
	}

	public BaseDaoException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace, String code) {
		super(message, cause, enableSuppression, writableStackTrace);
		this.code = code;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}
}
